package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @DATE: 16:20
 * @Author: LuckyH
 */

@Mapper
public interface SysNoticeDao {


    List<SysNotice> selectNotices (SysNotice notice);
    int deleteById( Long... id);
    // 这个可以直接获取id的值，数组
   // int deleteById(@Param("id") Long... id);

    @Select("select * from sys_notice where id=#{id}")
    SysNotice selectById(Long id);

    int insertNotice(SysNotice notice);

    int updateNotice(SysNotice notice);

}
